<div class="breadLine">
    <ul class="breadcrumb">
        <li><a href="#">Khách hàng</a> <span class="divider">&gt;</span></li>                
        <li class="active">Thông báo</li>
    </ul>
</div>

<div class="workplace">  
    <div class="page-header">
        <h1 style="width: 60%;border-bottom: none 0;"><small style="color: #30557f;">Thông báo</small></h1>
    </div>  
    
    <div class="row-fluid">
     <div class="span12" id="mails">
            <div class="headInfo">
                <div class="input-append">
                    <?php echo form_open('');?>
                    <input type="text" name="keyword" placeholder="Tìm thông báo..." id="widgetInputMessage" style="width: 715px;"><button class="btn btn-danger" type="submit">Tìm</button>
                    </form>
                </div>                                           
                <div class="arrow_down"></div>
            </div>    

            <div class="block-fluid" id="inbox">
                
                <table cellpadding="0" cellspacing="0" width="100%" class="table">
                    <thead>
                        <tr>
                            <th>STT</th>
                            <th width="40%">Tiêu đề</th>
                            <th width="25%">Thời gian</th>
                            <th width="10%">Trạng thái</th>
                            <th width="15%">Đính kèm</th>
                            <th width="10%">Tác vụ</th>                                                                        
                        </tr>
                    </thead>
                    <tbody>
                    <?php $i = 0; foreach($data AS $el=>$le):?>
                        <tr style="cursor: pointer;" title="click để xem thông báo này" onclick="window.location='<?php echo $baseurl.'read-notification?id='.$le->id?>'" style="<?php echo $le->read == 0 ? 'font-weight: bold;background-color: #F9F9F9' : ''; ?>">
                            <td><?php $i++; echo $pageg == 0 ? $i : $pageg + 1;$pageg++;?></td>
                            <td><?php echo $le->title?></td>
                            <td style="text-align: middel;"><?php echo $le->time?></td>
                            <td style="text-align: center;">
                                <?php 
                                if($le->read == 1)
                                {
                                    echo 'Đã đọc';
                                }else{
                                    echo 'Chưa đọc';
                                }
                                ?>
                            </td>
                            <td>
                                <?php 
                                if($le->attachment == 1)
                                {
                                    echo 'Có';
                                }else{
                                    echo 'Không';
                                }
                                ?>
                            </td>
                            <td>
                                <a  title="click để xem thông báo này" href="<?php echo $baseurl.'read-notification?id='.$le->id?>">
                                    [ Chi tiết ]
                                </a>
                            </td>
                        </tr>   
                    <?php endforeach;?>                            
                    </tbody>
                </table>                       
                <div class="toolbar bottom-toolbar clearfix">
                    
                    <div class="right">
                        <div class="pagination">
                            <?php echo $this->pagination->create_links();?> 
                        </div>                                
                    </div>
                </div>                                                                     
            </div>
        </div>                

    </div>            
<style>
.table td{
    display: table-cell;vertical-align: middle;
} 
</style>
</div>